Ether and theory of elasticity in Beltrami's work