Terahertz Detection and Mixing Using Two-Dimensional Materials