Error-correcting codes over Galois rings