Naomi Osaka said she has pulled out of the semi-finals of the Western & Southern Open tennis tournament in protest at racial injustice.