Optical transitions of Ni2+and radiation defects in MgF2and MnF2