How an email error sparked a secret scramble to bring Afghans to Britain