A minimum concave-cost dynamic network flow problem with an application to lot-sizing