Add optional `rtol` argument to 1D solvers

This exposes an option to control the relative tolerance of the 1D
root-finding functions in `scipy.optimize`. The feature existed in the C
implementations but was not exposed by the Python interface.