Lectures on Phase Transitions and the Renormalization Group