Path integral method to study rotations in doped helium clusters: application to He-N-OCS and He-N-N2O.