Parity effect and single-electron injection for Josephson-junction chains deep in the insulating state