Solid phase synthesis of quinazolinones