Lattice QCD calculation of isospin breaking effects due to the up-down mass difference