Resonance widths for general Helmholtz resonators with straight neck