From first principles to phase diagrams : modelling Ti and its alloys at extreme conditions