Shape effects in the interaction between an edge dislocation and an elliptical inhomogeneity