The segregation of granules in a vibrated bed