Ionization energies of beryllium in strong magnetic fields: a frozen core approximation