X-ray study of the thermal expansion anisotropy in YVO4 and YAsO4 compounds