A Tutorial on Retrieval-Augmented Generation for LLM-based Recommender Systems