Liquid-cooled brake resistors in electric vehicles