In-plane cost-effective magnetically actuated valve for microfluidic applications