Electronic properties of lattice defects studied with Synchrotron Radiation