Serena Williams dispatched another fellow former world number one as she stormed into the semi-finals of the Madrid Open.