Noncommutativity and Duality through the Symplectic Embedding Formalism