Calculation of the electronic structure near the tip of a graphitic nanocone