Safety investigators in the US are investigating a crash in which the battery of a Tesla electric car caught fire, burning two teenagers to death.