Resurgent Smith smacks century as India trail Australia by 242