Valence-change bipolar resistive switching devices based on ErMnO3 polymorphs