Added a new parameter QudaInvertParam::max_res_increase, which sets how many consecutive increases in the reliable resisdual are tolerated.