Asian shares gain in upbeat outlook