Tata Motors takes a massive loss