Self-adaptive FEM numerical modeling of the mild-slope equation