Exploiting temporal discharge current information to improve the efficiency of clustered power-gating