Single-photon decays in systems with at least one heavy quark