From CuFeS2 to Ba6Cu2FeGe4S16: rational band gap engineering achieves large second-harmonic-generation together with high laser damage threshold.