Regular variation in more general settings