Salamanca, 1812