Detailed characterization of electron sources yielding first demonstration of European X-ray free-electron laser beam quality