Shape and Feshbach resonances in inner-shell photodetachment of negative ions