Spectral separation of the stochastic gravitational-wave background for LISA in the context of a modulated Galactic foreground