Development of a fountain detector for spectroscopy of secondary electrons in scanning electron microscopy