Computing Committor Functions for the Study of Rare Events Using Deep Learning