Effects of Hubbard U correction on the structural and electronic properties of rutile, anatase and brookite TiO2