Tesla plans $1.6 billion offering to fund gigafactory