Resistive switching in mixed orthorhombic/hexagonal RMnO3 (R = Y, Er) polycrystalline thin films