Control function methods in applied econometrics