Three men sentenced to life in prison for planning attacks in Britain