Design and development of a silicon-segmented detector for 2D dose measurements in radiotherapy