Two-soliton waves in anisotropic cosmology