Structure and electronic properties of monoclinic Nb12O29