Towards a functional analysis of anorexia nervosa and bulimia nervosa.