China opens domestic stock markets to foreign firms