Shipping costs for System Theory : A Unified State-Space Approach to Continuous and Discrete Systems