Infrared Photodetectors Based on 2D Materials and Nanophotonics