Reprogramming bacterial nanocompartments into light-triggered nanoreactors