Optimization of bioretention systems through application of ecological theory