From micro to nanodosimetry with an avalanche-confinement TEPC: Characterization with He-4 and Li-7 ions