Mass and energy analysis of incident ions to substrate during deposition by hollow cathode discharge