Using the directional shadow elasticity of substitution to measure the concavity of the cost function