Probing nuclear rates with Planck and BICEP2