Calculations of stimulated echoes and two-dimensional nuclear magnetic resonance spectra for solids with simple line shapes