Medipix2 as a tool for proton beam characterization RID C-4085-2009