Swell-induced surface instability of confined hydrogel layers on substrates