Julian Lennon had vowed never to perform his father’s peace anthem “Imagine” publicly. But the singer was moved by the war on Ukraine.