Charged Point Defects in the Flatland: Accurate Formation Energy Calculations in Two-Dimensional Materials