GEANT4 hadronic cascade models analysis of proton and charged pion transverse momentum spectra from $p$ + Cu and Pb collisions at 3, 8, and 15 GeV/c