Estimating a Continuous Treatment Model with Spillovers: A Control Function Approach