Flexible Mean and Dispersion Function Estimation in Extended Generalized Additive Models