Techniques for the control of water fugacity and oxygen fugacity for experimentation in solid-media high-pressure apparatus