The Effects of Pedestrian Environments on Walking Behaviors and Perception of Pedestrian Safety