Programmable black phosphorus image sensor for broadband optoelectronic edge computing