Technology Adoption Under Production Uncertainty: Theory and Application to Irrigation Technology