Quantum Otto thermal machines powered by Kerr nonlinearity