Path integral Monte Carlo simulations for rigid rotors and their application to water