Synthesis of substituted N-(2,4-dioxo-1,2,3,4-tetrahydroquinazolinyl)benzamides and N-(2-thiono-4-oxo-1,2,3,4-tetrahydroquinazolinyl)benzamides