MAD techniques applied to powder data: The method of the joint probability distribution function