X-ray resonant magnetic scattering investigations of hexagonal multiferroics RMnO3 (R = Dy, Ho, Er)