Shell structure from 100Sn to 78Ni: Implications for nuclear astrophysics