Recent Advances in Terahertz Photonic Technologies Based on Graphene and Their Applications