Bacterial inactivation using pulsed light