Spanish police say they averted attack at Madrid train station