Chemoselective Synthesis of 3- and 5-Pyrazolylacetates.