Resonant plasmonic terahertz detection in graphene split-gate field-effect transistors with lateral p–n junctions