Elastic modulus of supercooled liquid and hot solid silicon measured by inelastic X-ray scattering