Investigations of internal stresses in high-voltage devices with deep trenches