All-optical modulation with 2D layered materials: status and prospects