Accurate method for determining tilt bias angles in thin films of nematic liquid crystals