An ecological stance on risk and safe behaviors in children: the role of affordances and emergent behaviors