Resolving the mystery of the second charge reversal on solid surfaces in the presence of divalent heavy metal ions