Analysis of breaking and re-closure of a bubble near a free surface based on the Eulerian finite element method