A calculation of the effective wavelengths of stars for visual pointing