Pressure–composition phase diagram of Ti–C from first principles