Detrending moving average algorithm: A closed-form approximation of the scaling law