Protecting asylum-seekers, refugees and migrants in detention