Basis-independent measures of R-parity violation