Dissuading excessive risk-taking: An agency model of optimal managerial compensation