Alfonso XII, 1881