Control of the polarization flop direction in multiferroic RMnO3 (R = Tb, Dy) by a tilted magnetic field