Theoretical study of energy, inertia and nullity of phenylene and anthracene