Indium phosphide based photodiodes for mid-wave infrared detection