Closed-loop control through self-sensing of a Joule-heated twisted and coiled polymer muscle