A method for determining surface energy of solids