Controllability of edge dynamics in complex networks