Efficient solution of quadratic eigenvalue problems in structural dynamics