Modelling of advanced three-ion ICRF heating and fast ion generation scheme for tokamaks and stellarators