Ravi Ashwin moved his match figures to 12-193 as India closed in on a big victory over Australia on day four of the first Test in Chennai.