Algebraic approach to quantum field theory on a class of noncommutative curved spacetimes