Generation and suppression of runaway electrons in MST tokamak plasmas