Landau levels and edge states in carbon nanotubes: A semiclassical approach