The cryptocurrency Dogecoin has soared after Elon Musk said Tesla would accept it for payments.