A complexity and networks approach to sustainability