A new sensor for thermodynamic measurements of magnetization reversal in magnetic nanomaterials