World number one Serena Williams recovered to reach the Australian Open quarter-finals, having lost the first set of her fourth round match to Garbine Muguruza on Monday.