Phase transitions and mechanical stability of TiO2 polymorphs under high pressure