Trimming, Mapping, and Optimization in Isogeometric Analysis of Shell Structures