Determination of the effective Hall factor in p-type semiconductors