Optical spectroscopy of BaY2F8:Dy3+