Production ofA=6,7nuclides in theα+αreaction and cosmic ray nucleosynthesis