Determination of diabatic states through enforcement of configurational uniformity