'Cluster-Bethe-lattice' method: electronic density of states of amorphous and crystalline homopolar solids