Tailoring the anomalous Hall effect in the noncollinear antiperovskite Mn3GaN