'Spain stood up for Turkey, democracy after coup bid'