The Physics Of Solar Energetic Particles And Their Detection