Self-stratifying coatings containing barrier and active anticorrosive pigments