Measurement of Boron and Carbon Fluxes in Cosmic Rays with the PAMELA Experiment