Development of a novel solid state detector for beam monitoring in proton therapy