Shape optimization problems for eigenvalues of elliptic operators