Analysis and design of two-dimensional sails