KnowRL: Teaching Language Models to Know What They Know