Maria Sharapova survived another battle to beat Kirsten Flipkens and reach the quarter-finals of the Sony Open