Symplectic spaces and pairs of symmetric and nonsingular skew-symmetric matrices under congruence