Analysis of shape optimization problems for unsteady fluid-structure interaction