Dynamics of modal power distribution in a multimode semiconductor laser with optical feedback