X-ray magnetic circular dichroism studies of 5f magnetism in UCoAl and UPtAl