Dynamo action in rapidly rotating Rayleigh–Bénard convection at infinite Prandtl number