A simple and reliable method for measuring the liquid crystal anchoring strength coefficient