Text this: Dual-mode infrared detection via photovoltaic and barrier pyroelectric effects in PbTe p–n junctions.