The detection of X-ray emission from the BL Lacertae object Markarian 180