Programmable microfluidic platform for spatiotemporal control over nanoliter droplets