Black phosphorus mid-infrared photodetectors with high gain