A general transformation class of semiparametric cure rate frailty models