A new method for generating families of continuous distributions