An automated microfluidic system for single-stranded DNA preparation and magnetic bead-based microarray analysis