A semi‐parametric approach to model‐based sensitivity analysis in observational studies