Absorption and eigenmode calculation for one-dimensional periodic metallic structures using the hydrodynamic approximation