Comparison investigation of near- and far-field properties for plasmon resonance of silver nanosphere dimers