Planar heating or cooling elements