Nearly free rotation of water and ammonia in alkanes and other weakly interacting solvents