Ajax remained on course for a domestic double after they knocked out defending KNVB Beker champions AZ Alkmaar with a 1-0 semi-final win.