Spanish cities have been hosting a number of official events and exhibitions to celebrate 250 years of American independence - including Spain's role in it.