Self‐powered bifunctional perovskite photodetectors with both broadband and narrowband photoresponse