Characterizations of the symmetric difference and the structure of stone algebras