Measurements of production and inelastic cross sections for $\mbox{p}+\mbox{C}$, $\mbox{p}+\mbox{Be}$, and $\mbox{p}+\mbox{Al}$ at 60 GeV/$c$ and $\mbox{p}+\mbox{C}$ and $\mbox{p}+\mbox{Be}$ at 120 GeV/$c$