Regioselective synthesis of isoxazole and 1,2,4-oxadiazole-derived phosphonates via [3 + 2] cycloaddition.