Multistate modified embedded atom method