The purpose of using flux in soldering is to