Novak Djokovic says he produced his "best performance of the year" as he beat Gael Monfils to make the last 16 of the Madrid Open.