Multifunctional resistive switching behaviors employing various electroforming steps