X-ray and optical observations of BL Lac objects: 3C 66A (B0219+428) and ON 325 (B1215+303)