Solid-phase synthesis of [1,2,4]triazolo[3,4-a]phthalazine and tetrazolo[5,1-a]phthalazine derivatives