Resonant X-ray scattering study of perovskite-type vanadate RVO3