Physics-informed generalized embedded-atom method potentials for metals and alloys