High-resolution optical spectroscopy and magnetic properties of Yb3+ in Y2SiO5