Asian shares gain on rosy Japan data, bucking Wall St losses