Resistive switching characteristics of CMOS embedded HfO2-based 1T1R cells