Structured quadratic inverse eigenvalue problem, I. Serially linked systems