Correlation of local stability of DNA during melting with environmental conditions