High pressure optical studies of rare earth ions in CaF2 and other fluorides