Developmental change in children's analysis of spatial patterns