Selective functionalization of complex heterocycles via an automated strong base screening platform