Pakistan Railways plunges to Rs 40bn loss