Approximate sparsity patterns for the inverse of a matrix and preconditioning