Instability, intermixing and electronic structure at the epitaxial LaAlO3/SrTiO3(001) heterojunction