Computational materials chemistry: from polymer precursors to ceramics and high-pressure materials