Panel Data Estimates of the Production Function and Product and Labor Market Imperfections