Probing the equation of state of asymmetric nuclear matter with isospin diffusion and stopping in heavy-ion collisions