Geometry and dynamics link form, function and evolution of finch beaks