A Q-operator for open spin chains I. Baxter’s TQ relation