Simple analysis of torque measurement of magnetic thin films