Electronic Charges and Electric Potential at LaAlO3/SrTiO3 Interfaces Studied by Core-Level Photoemission Spectroscopy