Implicit coupling framework for multi-physics reservoir simulation