Using instrumental variables to estimate the attributable fraction