Two-Stage Least Squares Estimation of Average Causal Effects in Models with Variable Treatment Intensity