Row transfer matrix functional relations for Baxter's eight-vertex and six-vertex models with open boundaries via more general reflection matrices