On finite groups isospectral to simple symplectic and orthogonal groups