Measurement of optical functions of highly oriented pyrolytic graphite in the visible