RAFT polymerization of N-vinylcaprolactam and effects of the end group on the thermal response of poly(N-vinylcaprolactam)