Three-wave collinear difference-frequency mixing and terahertz coherent emission from gapped graphene