calculate moment of inertia rectangle