Nanocavity and atomically thin materials advance tech for chip-scale light sources