Samsung to invest $648 billion in South Korea chip factories