Structure and functioning of aquatic ecosystems