Self-Consistent Augmented-Plane-Wave Method