Elon Musk has said he wants to send a spacecraft crewed by humanoid robots on a voyage to Mars by the end of next year.