Composition-dependent spin exchange interaction for multiferroicity in perovskite Pb(Fe1/2Nb1/2)O3