Elena Rybakina reaches the semi-finals in Montreal after Marta Kostyuk retires with apparent arm injury