R1-Ranker: Teaching LLM Rankers to Reason