Learning Sparse Masks for Diffusion-based Image Inpainting