Rayleigh quotient optimization

How to solve the problem maximize x^Gx/x^*x subject to the constraints x^*H_1x=0 and x^H_2x=0, where G , H_1 and H_2 are hermitian matrices, my question is how to code this problem in cvx ?

x^*H_1*x=0 and x^H_2*x=0 are non-convex constraints