Electric potential distribution in nanoscale electroosmosis: from molecules to continuum