Samsung will invest about $3.8 billion to expand 4nm production capacity