Optical phonons in carbon nanotubes: Kohn anomalies, Peierls distortions, and dynamic effects