Modeling safety culture as a socially emergent phenomenon