Soft X-ray observations of two BL Lacertae objects - Markarian 421 and 501