Kiran Carlson’s century is in vain as Glamorgan lose inside three days