Alcaraz to have tests on injured ankle after Rio Open retirement