Calculation of the total energy of charged point defects using the Green's-function technique | Synapse