Corrosion mechanisms in biomedical micro- and nanodevices and microfeatured implants