Optical conductivity and x-ray absorption spectra of the Mott-Hubbard compounds RVO 3 ( R=Sr , Ca, La, and Y)