Stopping criteria for linesearch methods without derivatives