Tesla engineer was 'attacked' by malfunctioning robot at Texas Gigafactory