Correlation functions on the critical lines of the Baxter and Ashkin-Teller models☆