Railways to set up 1,000 over bridges, underpasses to prevent accidents