An adaptive continuation process for solving systems of nonlinear equations