Photonic and plasmonic transition radiation from graphene