Former Wimbledon champion Petra Kvitova was taken the distance by Japan's Misaki Doi before advancing to the second round of the US Open 6-2 3-6 6-1.