Synthesis of α-hydroxyphosphonates and α-aminophosphonates