Ghana beat Niger to enter quarters