Tuning of standing postural responses to instability and cost function