Nearly Tight Bounds for the Continuum-Armed Bandit Problem