Neutron-proton mass difference in nuclei in a relativistic harmonic quark model