GaAs/Al0.8Ga0.2As avalanche photodiodes for soft X-ray spectroscopy