The joint replenishment problem with time-varying costs and demands: Efficient, asymptotic and e-optimal solutions