A measuring method based on photodiodes for the diagnostic