Instability of layered quantum liquids: 2. Hartree-Fock approximation for superlattices