Critical points and Dirac points in graphene and layered semiconductors