Process for preparing 5-fluoro-1h-pyrazolo [3, 4-b] pyridin-3-amine and derivatives thereof