Generalized Brjuno functions associated to a-continued fractions