Integrated and spectrally selective thermal emitters enabled by layered metamaterials