Rechargeable microdevices