Ecology of coastal waters a systems approach