Modification-free photocontrol of β-lactam conversion with spatiotemporal resolution