Japan thrash Pakistan in doubles to reach Davis Cup qualifiers