On thermodynamic stability conditions for nanosized particles