Resistive switching characteristics of HfO2-based memory devices on flexible plastics.