Determination of anchoring energies from surface tilt angle measurements in a nematic liquid crystal