A dual-phase architecture for efficient amplified spontaneous emission in lead iodide perovskites