Estimating Production Functions with Heterogeneous Firms