Michael Clarke hit an unbeaten 329 as Australia took control of the second Test against India in Sydney.