Homological properties of the sublevels of some even functions on Hilbert spaces