The impact of the work environment of nurses on patients safety