Extended Diffeomorphism for Real-Time Motion Replication in Workspaces with Different Spatial Arrangements