Magnetic properties of nickel and platinum quaternary borocarbides