Electric field gradients in pyrochlore compounds