Bioelectronic devices for light-based diagnostics and therapies.