Instrumental variable approach to a model with squared and interaction terms