Shape Resonances as a Probe of an Evolving Nuclear and Electronic Structure in Molecules