Method for the analysis of sample and sample