Global measures of deviation for kernel and nearest neighbor density estimates