Simultaneous detection of the nonlinear restoring and excitation of a forced nonlinear oscillation: an integral approach