Cognitive development and locus of control as predictors of preschoolers' understanding of safety and prevention