Text this: Atomistic modeling of rare earth ions in photonic materials