Geometric phase for mixed states: a differential geometric approach