Exponentially fitted methods for second order ordinary differential equations with parameter estimation