Investigation of Effects of Thermal History on the Structure and Properties of Lead and Bismuth Borate Glasses