Text this: A density functional study of structural, electronic and optical properties of titanium dioxide: characterization of rutile, anatase and brookite polymorphs