Stopping criteria for line searches without derivatives