Uniquely defined geometric phase of an open system