Modular and flexible spectral-element waveform modelling in two and three dimensions | Synapse