Probing the anisotropy constants of SmCo5 and PrCo5 by Hall resistance measurements in pulsed high magnetic fields up to 47 T