Programmable droplet microfluidics for complex multistep bioassays