Phase determination by deep learning for disordered systems