Potential model of dye molecule from measurements of the photocurrent in monolayer assemblies