Optical properties and electronic structure of multiferroic hexagonal orthoferrites RFeO3 (R = Ho, Er, Lu)