Applications of machine learning in nuclear imaging and radiation detection