Understanding the nature of the passivation layer enabling reversible calcium plating