Magnetic excitations and exchange parameters of the nickel-chain compound PbMn2Ni6Te3O18: Neutron scattering and density functional theory studies