Light Nuclei Identification in Cosmic Rays in the PAMELA Experiment by Multiple Measurements of Energy Loss along the Particle Track