Thermal effects associated with hard anodizing of cast aluminum alloys