Electronic spectrum of trilayer graphene