Optimal Input Design for Linear Dynamical Systems with Unknown Structures