Streaming potential in porous media: 1. Theory of the zeta potential