An Extension Method to Construct M-Ary Sequences of Period 4N with Low Autocorrelation