Rotational magic conditions for ultracold molecules in the presence of Raman and Rayleigh scattering | Synapse