PAMELA measurements of the boron and carbon spectra