Energy-efficient logic-in-memory I-bit full adder enabled by a physics-based RRAM compact model