Injury and retirement for Dimitrov, Sinner qualifies for Wimbledon quarterfinals