Asymptotic behavior of the finite-time expected time-integrated negative part of some risk processes and optimal reserve allocation