Architecture and development of a detector for online verification in IMRT