The crystal structure and magnetic properties of the rare-earth nickel (RNi) compounds