Genetic variation in marine fishes as a test of the niche-variation hypothesis