Measurement of boron and carbon fluxes in cosmic rays with the pamela experiment