Free material optimization for stress constraints