Electrostatics in periodic boundary conditions and real-space corrections | Synapse