The secondary-electron yield measured for 5–24 MeV protons on aluminum-oxide and gold targets