Internally charged palladium hydride reference electrode: II Automatically controlled palladium hydride electrode