Formation conditions of Titan