Ecuador referendum is a hard-fought win for the environment