HOMFLY polynomial via an invariant of colored planar graphs