Modified method of variational calculation of Wannier functions | Synapse