A semi-empirical effective medium theory for metals and alloys