Continuum model for long-wavelength phonons in two-dimensional graphite and carbon nanotubes