Synthesis of functional polymers by atom transfer radical polymerization