Single envelope equation modelling of frequency comb generation in quadratic and cubic nonlinear resonators