Optical Gating of Black Phosphorus for Terahertz Detection.