Observation of field-induced magnetic and structural transitions in an antiferromagnet by means of synchrotron x-rays