On the definition of the stress tensor in granular media