A bivariate lattice model to compute risk measures in life insurance policies