The effective-medium approximation for the thermoelectric power of polycrystals: application to a model for La2-xMxCuO4