Estimating Firm-level Production Functions with Spatial Dependence in Output, Input, and Productivity