Determination of elastic properties of surface layers and coatings