Application of large-area avalanche photodiodes to energy-dispersive x-ray fluorescence analysis