Crystal-field splitting, magnetic interaction, and vibronic excitations of 244Cm3+ in YPO4 and LuPO4