Grammage of cosmic rays around Galactic supernova remnants