The purpose of heat treatment is to