What exact moment must the intention (Niyyah) for Tayammum be formulated in the heart?

Tayammum: The Eight Conditions of Validity and Valid Excuses