On orders of elements of finite almost simple groups with linear or unitary socle