The electronic and optical properties of Si/SiO2 superlattices: role of confined and defect states