Stochastic energetic approach devoted to the modeling of static two-phase problems dominated by surface tension