EPR and optical spectroscopy of Yb3+ ions in CaF2 and SrF2