Self-powered, light-controlled, bioresorbable platforms for programmed drug delivery