Ghana sealed top spot in Africa Cup of Nations Group B and a quarter-final meeting with Cape Verde by outclassing Niger in Port Elizabeth.