Higher-Order Dispersion, Stability, and Waveform Invariance in Nonlinear Monoatomic and Diatomic Systems