Fabrication and integration of microscale permanent magnets for particle separation in microfluidics