Extended transfer matrix modeling of an erbium-doped cavity with SiO2/TiO2 Bragg reflectors