Precision studies of quantum electrodynamics at future $e^+e^-$ colliders