Modelling of linear motor end-effects for saliency based sensorless control