Phonon engineering of atomic-scale defects in superconducting quantum circuits