Inner shell edge profiles in electron energy loss spectroscopy