Thousands of illegal weapons seized by Spanish police