Investigating the Mechanism of the Acceleration of Cosmic Rays during Solar Flares Using the Electric Field in Current Sheets of the Solar Corona