Extracting Second-Order Systems from State-Space Representations