A court in Vadodara, Gujarat, has handed a man a 20-year prison sentence after convicting him of sexually assaulting a girl aged nine.