Transformation of surface plasmon polaritons to radiation in graphene in terahertz regime