The Computation of the Degree of Mediation of a Star or Planet in the Andalusian and Maghribi Tradition