Characterization of the optimal plans for the Monge-Kantorovich transport problem