Implantable semiconductor imaging devices for in vivo optical imaging of brain