Electrodynamics of graphene heterostructures and electromagnetic applications