Modelling of edge localized modes with a current relaxation model on JET and TEXTOR