Complexes of nicotinamide with metal halides