Potential distribution across a membrane with surface charge layers: Effects of nonuniform charge distribution