Dynamical community detection and spatiotemporal analysis in multilayer spatial interaction networks using trajectory data