Search for a heavy dark photon at future e+e− colliders