Shell structure in neutron-rich Ca and Ni nuclei under semi-realistic mean fields