An improved LCAO SCF method for three-dimensional solids and its application to polyethylene, graphite, diamond, and boron nitride