Coupled magnetic and structural transitions in EuMn2O5 as studied by neutron diffraction and three-dimensional polarization analysis