Visual H2 sensor for monitoring biodegradation of magnesium implants in vivo.