CODOSOL: a bound-constrained nonlinear equations solver