A macrophyte submodel for aquatic ecosystems