Measurable n-sensitivity and maximal pattern entropy