Systematic first-principles calculations of charge transfer transitions of trivalent rare earth ions in CaF2