Electronic structure of high-T c superconductors and related compounds