Projectile fragmentation of Ca40, Ca48, Ni58, and Ni64 at 140 MeV/nucleon