World shares mostly gain ahead of earnings and data releases