BioMEMs for drug delivery applications