Scientists have discovered how the black and white zebra acquired their stripes