Essays on estimating firm-level production function with spatial dependence