Galactic cosmic ray modulation: Effects of the solar wind termination shock and the heliosheath