Blended implicit methods for solving ODE and DAE problems, and their extension for second-order problems