Particle acceleration in solar flares