A technique for calculating range spectra of charged particle beams distal to thick inhomogeneities | Synapse