Ronaldo trains with Portugal ahead of Confed semifinal