Analysis and parameterisation of ionic reactions affecting middle atmospheric HO x and NO y during solar proton events