The Low-Energy Module (LEM): Development of a CubeSat Spectrometer for Sub-MeV Particles and Gamma-Ray Burst Detection