Symplectically entangled states and their applications to coding