Electronic structure of spinel oxides: zinc aluminate and zinc gallate