Man who spent 18 years on death row declared innocent, awarded compensation