Shalimar Express derailed, 40 injured