Probing core-electron orbitals by scanning transmission electron microscopy and measuring the delocalization of core-level excitations