High-field magnetoresistance of the exchange-enhanced paramagnetic and weakly ferromagnetic compounds of the Ni3Al and Ni3Ga series