A computational study on the energetics and reactivity of some xanthene and thioxanthene derivatives