Preparation of condensed heterocyclic pyrazole derivatives as protein kinase inhibitors