Toward the use of single crystal diamond based detector for ion-beam therapy microdosimetry