Generalized Krengel-Ivanov Sequences with Optimal Autocorrelation Magnitude