Resonances in inner-shell photoemission from caged molecules