Spatially modulated vacua in a Lorentz-invariant scalar field theory