Probing the top-quark electric dipole moment at a photon linear collider