Dynamic and leakage power reduction in MTCMOS circuits using an automated efficient gate clustering technique