Planar GeSn lateral p-i-n resonant-cavity-enhanced photodetectors for short-wave infrared integrated photonics