First-principles calculations of charged surfaces and interfaces: A plane-wave nonrepeated slab approach | Synapse