Optimizing design and management of restored wetlands and floodplains in agricultural watersheds for water quality