Acceleration and Propagation of Solar Energetic Particles