Heterocycles from amino acids. A novel synthetic approach for imidazo[1,5-a]pyridines and imidazo[1,5-a]quinolines