A thermodynamic analysis of the conditions of equilibrium at nonhydrostatically stressed and curved solid-fluid interfaces