GeSn lateral p-i-n waveguide photodetectors for mid-infrared integrated photonics.