Electronic structure of defects at Si/SiO2 interfaces