Title: Avalanche photodiodes in stellar spectroscopy