Calculation of the Cherenkov light yield from electromagnetic cascades in ice with Geant4