Codeword-Independent Performance of Nonbinary Linear Codes Under Linear-Programming and Sum-Product Decoding