Spectroscopic indications of tunnel barrier charging as the switching mechanism in memristive devices