The director of 2004 sci-fi film I, Robot has accused billionaire Elon Musk of copying his designs for humanoid machines and self-driving vehicles.