Structure effect in the demulsification performance of cationic surfactants