Text this: Atomistic Simulation of Intrinsic Defects and Trivalent and Tetravalent Ion Doping in Hydroxyapatite