Akram Khan's final performance at the King's Theatre, Edinburgh was marred by injury but still devastating, says Sarah Crompton