Mid-infrared imaging of the circumstellar dust around three Herbig Ae stars: HD 135344, CQ Tau, and HD 163296