Quality factor and finesse optimization in buried InGaAsP/InP ring resonators