Nuclear processes in the solar atmosphere and the particle-acceleration problem