The Kerr theorem in odd dimensions