created function to generate life tables from gompertz-makeham equation