Quantum Hall effect in bilayer and trilayer graphene