First-principles nonlocal-pseudopotential approach in the density-functional formalism: Development and application to atoms | Synapse