A molecular calculation of electronic properties of layered crystals. II. Periodic small cluster calculation for graphite and boron nitride | Synapse