Theoretical Study on Sandwich-Like Transition-Metal–Cyclooctatetraene Clusters and One-Dimensional Infinite Molecular Wires