Solar nebula chemistry - Implications for volatiles in the solar system