Studies of fullerenes and carbon nanotubes by an extended bond order potential