Scale-effects on mean and standard deviation of the mechanical properties of condensed matter: An energy-based unified approach