Measurement of the electrogyratory and electro-optic effects in BSO and BGO