Electronic Energy Spectrum of Two-Dimensional Solids and a Chain of C Atoms from a Quantum Network Model