Large Scale First-Principles Simulations of Water and Ammonia at High Pressure and Temperature