Aggregate Industry Cost Functions and the Herfindahl Index