Nanoscale imaging and X-ray spectroscopy of electrically active defects in ultra thin dielectrics on silicon