Online optimisation of the MAX IV 3 GeV storage ring octupoles