System-theoretic safety analysis in agile software development