Structural, electronic, vibrational, and elastic properties of SWCNTs doped with B and N: an ab initio study