Metallic and other inorganic coatings, including for corrosion protection and corrosion testing of metals and alloys