GMW sequences over Galois rings and their linear complexities