Design, construction, operation and performance of a Hadron Blind Detector for the PHENIX experiment