Who is the american psychologist who proposed the functionalist approach and whose textbook, principles of psychology, dominated the field of psychology for 50 years after its publication?