Five-colour photometry of Henize 787 and Henize 788 = Wray 977, the probable counterpart of the X-ray source 3 U 1223-62