The electrical double layer in a nanopore in a barrier surface film