President and PM condole loss of lives in Indian rail tragedy