Defect engineering in III-V ternary alloys: Effects of strain and local charge on the formation of native deep defects