Surface history of Mercury: Implications for terrestrial planets