Battery firm announces gigafactory plan