Isogeometric Shape Optimization for Quasi-static and Transient Problems