Add selection by frame index
This implements selection by frame index. If data already filtered, then selection generated for trains should be filtered accordingly. Frame index is the serial number of frame in the original detector output. It is the cellId for AGIPD.