Electronic structure of fullerenelike cages and finite nanotubes of aluminum nitride