Surface potential of an ion-penetrable charged membrane