who were the republicans in the spanish civil war