Famous for “Peter Rabbit,” the children’s author was also a devoted scientist and conservationist