Precision studies of cosmic rays with the PAMELA satellite experiment