Rohit Sharma’s century helps India secure a 2-1 series win over Australia with a seven-wicket victory in the third one-day international.