Spectrum and analyticity of semigroups arising in elasticity theory and hydromechanics