General-purpose Inverse Modeling Framework for Energy Transition Applications Based on Adjoint Method and Operator-Based Linearization