Photodynamic inactivation and its application in food preservation