Machine Learning Prediction of Charged Defect Formation Energies from Crystal Structures