Understanding Reinforcement Learning-Based Fine-Tuning of Diffusion Models: A Tutorial and Review