Phonon-Trapping-Enhanced Energy Resolution in Superconducting Single-Photon Detectors