Microfluidic magnetic separator using an array of soft magnetic elements