Nadal topples Querrey to set up blockbuster Federer semi