Rearrangement of 4-imino-(1H,4H)-3,1-benzoxazine-2-ones to 2,4-quinazolinediones via an isocyanate carboxamide intermediate