Molecular rotors as sensors of microscopic viscosity and temperature