Symplectic structure of the moduli space of sheaves on an abelian or K3 surface