On the rotating wave approximation