Value-at-risk, limited liability and the moral-hazard problem