Loss shaping enhances exact gradient learning with EventProp in Spiking Neural Networks