Assessing coupled mechanical behavior and environmental degradation at submicron scales