Fundamentals of aquatic ecosystems