The study of the interactions between organisms and their interrelationships with the physical environment is known as