Rapidly rotating Bose-Einstein condensates in anharmonic confinement