Optical spectroscopy of YPO4 and YVO4 crystals doped with Dy3+