Australia captain Michael Clarke scored an unbeaten 251 as his team took control of the second Test against India.