Extrapolation methods and Rubio de Francia's extrapolation theorem