Safety of machinery: requirement specification based on functional need and work situations analysis