Stop enforcing that input_segment passed to SAI*::RunSegment be the
same size as the trigger window.

Also improve comments, rename SAIParams members, and add tests to
better document the triggering process.