Proton production cross sections for reactions by 300- and 392-MeV protons on carbon, aluminum, and niobium