Foundations for Risk Assessment of AI in Protecting Fundamental Rights