Developing a fundamental understanding of dynamic electrode-electrolyte interfaces during electrochemical ammonia production