Switching the activity of a photoredox catalyst through reversible encapsulation and release