A simulation model of aerosol collection in granular media