Investigation of electroforming characteristics of TiO2 based resistance switching devices