COIN: Counterfactual inpainting for weakly supervised semantic segmentation for medical images