CP-violating dipole form factors of the top quark and tau lepton in scalar leptoquark models