Eigenvalue problems and shape optimization