The tin-rich intermediate phases in the alloys of tin with cadmium, indium and mercury