High-resolution optogenetics in space and time