Electronic pressure regulator