Optimization of parameters for semiempirical methods IV: extension