Structural, elastic, electronic and optical properties of various mineral phases of TiO2 from first-principles calculations