Kinetic processes in solar flares