Atomic structure, comparative stability and electronic properties of hydroxylated Ti2C and Ti3C2 nanotubes