ELECTRONIC STRUCTURE OF FINITE-LENGTH CARBON NANOTUBES: CROSSOVER FROM FULLERENES TO NANOTUBES