First-Principles Simulations of Materials under Extreme Conditions