Switched flow systems: pseudo billiard dynamics