Asian shares close mostly with gains, except for China