Petra Kvitova is through to the quarter-finals of the Italian Open - but the world number four had to fight for her place in the last eight.