Modeling current and voltage peaks generation in complementary resistive switching devices. (September 2021)