Moving frames for cotangent bundles