6D effective action of heterotic compactification on K3 with nontrivial gauge bundles