Total-energy full-potential linearized augmented-plane-wave method for bulk solids: Electronic and structural properties of tungsten