MINN: Learning the dynamics of differential-algebraic equations and application to battery modeling