Comparative study of lower fullerenes doped with boron and nitrogen