Community detection in temporal multi-layer networks