Almost £2.8m was overpaid in Northern Ireland Civil Service (NICS) pensions in the past three years, according to new figures.