Study of J/ψ and ψ(3686) decay to ΛΛ¯ and Σ0Σ¯0 final states