fix thickness output for diffraction patterns and intermediate wavefunctions