Electron optical phase-shifts by Fourier methods: analytical versus numerical calculations