Rare earth magnetic order in RNi2B2C and RNiBC