Synthesis of pyrazolopyridine 3-carboxylates by Friedlander condensation