Convenient quantitative preparation of phthalazine