Text this: Design optimisation of reluctance synchronous machines: a motor and generator study