Rats are being trained to save people trapped during earthquakes as part of a new scientific project.