Railways could double as a tool for probing Earth's shallow