Space-qualified silicon avalanche-photodiode single-photon-counting modules