Theoretical phonon dispersion of armchair and metallic zigzag carbon nanotubes beyond the adiabatic approximation