Investigation of the Action of Magnesium Ions on the Thermal Denaturation of DNA