Inferring epidemic containment probability from non-pharmaceutical interventions using a Gillespie-based epidemic model