Electrically configurable electroforming and bipolar resistive switching in Pt/TiO2/Pt structures