Optical method for monitoring of photodynamic inactivation of bacteria