Theoretical and numerical investigation of a mid-infrared energy-harvesting system