Solid-Liquid Transition and Hydrodynamic Surface Waves in Vibrated Granular Layers