<p>Spain's transport minister has said he will step down after two deadly train crashes in less than a year.</p>