Optical observations of five X-ray selected BL Lacertae objects