Electromagnetic-mass difference of pions in unified gauge field theories