What war occurred from 1877 to 1878