At least 39 killed as Indian train derails