Near‐Infrared and Short‐Wavelength Infrared Photodiodes Based on Dye–Perovskite Composites