Gender inequality and environmental resilience