A generalized complexity measure based on Rényi entropy