Safe and productive operation of homogeneous semibatch reactors involving autocatalytic reactions with arbitrary reaction order