Machine learning identifies long COVID patterns from electronic health records