how a healthy marine ecosystem functions