The optimal mean–variance investment strategy under value-at-risk constraints