Numerical solutions to the Boltzmann equation for rarefied gases via a local Green's function technique