Nonadiabatic single-qubit quantum Otto engine