Detention conditions and treatment of prisoners in the case-law of the Court of Justice of the European Union and of the European Court of Human Rights