Former prison chaplain to be next Kirk Moderator