European governments are knowingly complicit in the torture and abuse of refugees and migrants in Libya, Amnesty International has alleged.