Contract ended, China firm claims damages, Indian Railways replies with counter