Estuaries as ecosystems: a functional and comparative analysis