Control of geometry and kinematics on the state of stress of subduction zones: an application to the Mediterranean region